//
//  FKLoginView.m
//  FangKuai2
//
//  Created by lanou on 16/1/9.
//  Copyright © 2016年 MaZeGong. All rights reserved.
//

#import "HWLoginView.h"

@implementation HWLoginView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.layer.masksToBounds = YES;
        self.layer.cornerRadius = 2;
        CGFloat width = self.frame.size.width;
        CGFloat height = self.frame.size.height;
        self.backgroundColor = [UIColor whiteColor];
        _userLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, width / 5, height)];
        _userLabel.font = [UIFont systemFontOfSize:14];
        _userLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_userLabel];
        
        _lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth / 5, height / 3, 1, height/3)];
        _lineLabel.backgroundColor = [UIColor redColor];
        [self addSubview:_lineLabel];
        
        _userText = [[UITextField alloc] initWithFrame:CGRectMake(_lineLabel.right + 10, 0, width - _lineLabel.right - 10, height)];
         _userText.font = [UIFont systemFontOfSize:14];
        [self addSubview:_userText];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
